{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "路径: .//pjm/models 已存在\n",
      "路径: .//pjm/security 已存在\n",
      "路径: .//pjm/static 已存在\n",
      "路径: .//pjm/views 已存在\n",
      "路径: .//pjm/static/description 已存在\n",
      "创建: .//pjm/__manifest__.py 成功!\n",
      "创建: .//pjm/__init__.py 成功!\n",
      "创建: .//pjm/models/__init__.py 成功!\n",
      "创建: .//pjm/security/ir.model.access.csv 成功!\n",
      "------------start------------\n",
      "package: pjm\n",
      "name: need\n",
      "description: 需求\n",
      "Author: 赵子辉\n",
      "Date: 2023-03-23T00:00:00.000000000\n",
      "----Columns-----\n",
      "name type description\n",
      "name Char name\n",
      "process Text 业务流程\n",
      "needs Text 业务需求\n",
      "priority Char 优先级\n",
      "tobe Text 期望\n",
      "way Char 对应方式\n",
      "status Char 对应状态\n",
      "confirmer Char 确认人\n",
      "create_date Date 创建时间\n",
      "confirm_date Date 确认时间\n",
      "project_id Char 对应项目\n",
      "task_id Char 对应任务\n",
      "-----Files----\n",
      "创建: .//pjm/models/pjm_need.py 成功!\n",
      ".//pjm/models/pjm_need.py\n",
      "创建: .//pjm/views/pjm_need.xml 成功!\n",
      ".//pjm/views/pjm_need.xml\n",
      "创建: .//pjm/__manifest__.py 成功!\n",
      ".//pjm/security/ir.model.access_need.csv\n",
      "{'title': '', 'version': '', 'name': '', 'description': '', 'author': '', 'category': '', 'depends': ['base'], 'application': True, 'data': ['security/ir.model.access.csv', 'views/pjm_need.xml']}\n",
      "------------End------------\n",
      "代码生成完毕,请手动创建链接\n"
     ]
    }
   ],
   "source": [
    "from OdooModel import OdooModel\n",
    "file = './tables.xlsx'\n",
    "om = OdooModel('pjm',model_file=file)\n",
    "om.save2file()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.1"
  },
  "orig_nbformat": 4
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
